<!DOCTYPE html>



  


<html class="theme-next muse use-motion" lang="en">
<head>
  <meta charset="UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"/>
<meta name="theme-color" content="#222">









<meta http-equiv="Cache-Control" content="no-transform" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
















  
  
  <link href="/lib/fancybox/source/jquery.fancybox.css?v=2.1.5" rel="stylesheet" type="text/css" />







<link href="/lib/font-awesome/css/font-awesome.min.css?v=4.6.2" rel="stylesheet" type="text/css" />

<link href="/css/main.css?v=5.1.4" rel="stylesheet" type="text/css" />


  <link rel="apple-touch-icon" sizes="180x180" href="/images/apple-touch-icon-next.png?v=5.1.4">


  <link rel="icon" type="image/png" sizes="32x32" href="/images/favicon-32x32-next.png?v=5.1.4">


  <link rel="icon" type="image/png" sizes="16x16" href="/images/favicon-16x16-next.png?v=5.1.4">


  <link rel="mask-icon" href="/images/logo.svg?v=5.1.4" color="#222">





  <meta name="keywords" content="Hexo, NexT" />










<meta property="og:type" content="website">
<meta property="og:title" content="Hexo">
<meta property="og:url" content="http://xu-xuran.gitee.io/index.html">
<meta property="og:site_name" content="Hexo">
<meta property="og:locale" content="en_US">
<meta property="article:author" content="xuxuran">
<meta name="twitter:card" content="summary">



<script type="text/javascript" id="hexo.configurations">
  var NexT = window.NexT || {};
  var CONFIG = {
    root: '',
    scheme: 'Muse',
    version: '5.1.4',
    sidebar: {"position":"left","display":"post","offset":12,"b2t":false,"scrollpercent":false,"onmobile":false},
    fancybox: true,
    tabs: true,
    motion: {"enable":true,"async":false,"transition":{"post_block":"fadeIn","post_header":"slideDownIn","post_body":"slideDownIn","coll_header":"slideLeftIn","sidebar":"slideUpIn"}},
    duoshuo: {
      userId: '0',
      author: 'Author'
    },
    algolia: {
      applicationID: '',
      apiKey: '',
      indexName: '',
      hits: {"per_page":10},
      labels: {"input_placeholder":"Search for Posts","hits_empty":"We didn't find any results for the search: ${query}","hits_stats":"${hits} results found in ${time} ms"}
    }
  };
</script>



  <link rel="canonical" href="http://xu-xuran.gitee.io/"/>





  <title>Hexo</title>
  








<meta name="generator" content="Hexo 5.4.0"></head>

<body itemscope itemtype="http://schema.org/WebPage" lang="en">

  
  
    
  

  <div class="container sidebar-position-left 
  page-home">
    <div class="headband"></div>

    <header id="header" class="header" itemscope itemtype="http://schema.org/WPHeader">
      <div class="header-inner"><div class="site-brand-wrapper">
  <div class="site-meta ">
    

    <div class="custom-logo-site-title">
      <a href="/"  class="brand" rel="start">
        <span class="logo-line-before"><i></i></span>
        <span class="site-title">Hexo</span>
        <span class="logo-line-after"><i></i></span>
      </a>
    </div>
      
        <p class="site-subtitle"></p>
      
  </div>

  <div class="site-nav-toggle">
    <button>
      <span class="btn-bar"></span>
      <span class="btn-bar"></span>
      <span class="btn-bar"></span>
    </button>
  </div>
</div>

<nav class="site-nav">
  

  
    <ul id="menu" class="menu">
      
        
        <li class="menu-item menu-item-home">
          <a href="/%20" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-home"></i> <br />
            
            Home
          </a>
        </li>
      
        
        <li class="menu-item menu-item-archives">
          <a href="/archives/%20" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-archive"></i> <br />
            
            Archives
          </a>
        </li>
      

      
    </ul>
  

  
</nav>



 </div>
    </header>

    <main id="main" class="main">
      <div class="main-inner">
        <div class="content-wrap">
          <div id="content" class="content">
            
  <section id="posts" class="posts-expand">
    
      

  

  
  
  

  <article class="post post-type-normal" itemscope itemtype="http://schema.org/Article">
  
  
  
  <div class="post-block">
    <link itemprop="mainEntityOfPage" href="http://xu-xuran.gitee.io/2021/12/10/title%20PTA%20%207-5-5%20%E8%8B%B1%E6%96%87%E5%8D%95%E8%AF%8D%E6%8E%92%E5%BA%8F/">

    <span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
      <meta itemprop="name" content="">
      <meta itemprop="description" content="">
      <meta itemprop="image" content="/images/avatar.gif">
    </span>

    <span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
      <meta itemprop="name" content="Hexo">
    </span>

    
      <header class="post-header">

        
        
          <h1 class="post-title" itemprop="name headline">
                
                <a class="post-title-link" href="/2021/12/10/title%20PTA%20%207-5-5%20%E8%8B%B1%E6%96%87%E5%8D%95%E8%AF%8D%E6%8E%92%E5%BA%8F/" itemprop="url">Untitled</a></h1>
        

        <div class="post-meta">
          <span class="post-time">
            
              <span class="post-meta-item-icon">
                <i class="fa fa-calendar-o"></i>
              </span>
              
                <span class="post-meta-item-text">Posted on</span>
              
              <time title="Post created" itemprop="dateCreated datePublished" datetime="2021-12-10T23:20:38+08:00">
                2021-12-10
              </time>
            

            

            
          </span>

          

          
            
          

          
          

          

          

          

        </div>
      </header>
    

    
    
    
    <div class="post-body" itemprop="articleBody">

      
      

      
        
          
            <p>title: PTA  7-5-5 英文单词排序<br>tags:</p>
<ul>
<li><p>Testing</p>
</li>
<li><p>Another Tag</p>
</li>
</ul>
<figure class="highlight c"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br><span class="line">33</span><br></pre></td><td class="code"><pre><span class="line"><span class="meta">#<span class="meta-keyword">include</span> <span class="meta-string">&lt;stdio.h&gt;</span></span></span><br><span class="line"><span class="meta">#<span class="meta-keyword">include</span> <span class="meta-string">&lt;string.h&gt;</span></span></span><br><span class="line"><span class="meta">#<span class="meta-keyword">define</span> N 20</span></span><br><span class="line"><span class="function"><span class="keyword">int</span> <span class="title">main</span><span class="params">( )</span></span></span><br><span class="line"><span class="function"></span>&#123;</span><br><span class="line">    <span class="keyword">char</span> p[N][<span class="number">11</span>],q[<span class="number">11</span>];</span><br><span class="line">    <span class="keyword">int</span> i = <span class="number">0</span>;</span><br><span class="line">    <span class="keyword">while</span>(<span class="number">1</span>)&#123;</span><br><span class="line">    	<span class="built_in">scanf</span>(<span class="string">&quot;%s&quot;</span>,p+i);</span><br><span class="line">    	<span class="keyword">if</span>(p[i][<span class="number">0</span>] == <span class="string">&#x27;#&#x27;</span>) <span class="keyword">break</span>;<span class="comment">//这个地方一定要将p[][]写全，不能只写一个</span></span><br><span class="line">    	i++;</span><br><span class="line">	&#125;</span><br><span class="line">	<span class="keyword">int</span> j;</span><br><span class="line">	<span class="keyword">int</span> a[i];<span class="comment">//记录第i个字符串的长度</span></span><br><span class="line">	<span class="keyword">for</span>(j = <span class="number">0</span>;j &lt; i;j++)&#123;</span><br><span class="line">		a[j] = <span class="built_in">strlen</span>(p[j]);</span><br><span class="line">	&#125;<span class="comment">//记录了每一个字符串的长度</span></span><br><span class="line">	<span class="keyword">int</span> min = <span class="number">0</span>;<span class="comment">//让最小长度是a[min] 即先记录a[0] 是最小的</span></span><br><span class="line">	<span class="keyword">int</span> k;</span><br><span class="line">	<span class="keyword">for</span>(j = <span class="number">0</span>;j &lt; i;j++)&#123;</span><br><span class="line">		<span class="keyword">for</span>(k = <span class="number">0</span>;k &lt; i;k++)&#123;</span><br><span class="line">			<span class="keyword">if</span>(a[k] &lt; a[min])&#123;</span><br><span class="line">				min = k;</span><br><span class="line">			&#125;</span><br><span class="line">		&#125;</span><br><span class="line">		a[min] = <span class="number">11</span>;<span class="comment">//保证输出的字符串不在输出 //因为最多字符包括空白符只能11个，但是strlen只能统计字符，不包括空白符等的个数，所以字符最多10个，记录11个之后就不能再输出。</span></span><br><span class="line">		<span class="built_in">printf</span>(<span class="string">&quot;%s &quot;</span>,p[min]); </span><br><span class="line">	&#125; </span><br><span class="line">	</span><br><span class="line">	</span><br><span class="line">	<span class="keyword">return</span> <span class="number">0</span>;</span><br><span class="line">	 </span><br><span class="line">&#125;</span><br></pre></td></tr></table></figure>


          
        
      
    </div>
    
    
    

    

    

    

    <footer class="post-footer">
      

      

      

      
      
        <div class="post-eof"></div>
      
    </footer>
  </div>
  
  
  
  </article>


    
      

  

  
  
  

  <article class="post post-type-normal" itemscope itemtype="http://schema.org/Article">
  
  
  
  <div class="post-block">
    <link itemprop="mainEntityOfPage" href="http://xu-xuran.gitee.io/2021/12/09/%E7%AC%AC%E4%B8%83%E5%85%B3/">

    <span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
      <meta itemprop="name" content="">
      <meta itemprop="description" content="">
      <meta itemprop="image" content="/images/avatar.gif">
    </span>

    <span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
      <meta itemprop="name" content="Hexo">
    </span>

    
      <header class="post-header">

        
        
          <h1 class="post-title" itemprop="name headline">
                
                <a class="post-title-link" href="/2021/12/09/%E7%AC%AC%E4%B8%83%E5%85%B3/" itemprop="url">Untitled</a></h1>
        

        <div class="post-meta">
          <span class="post-time">
            
              <span class="post-meta-item-icon">
                <i class="fa fa-calendar-o"></i>
              </span>
              
                <span class="post-meta-item-text">Posted on</span>
              
              <time title="Post created" itemprop="dateCreated datePublished" datetime="2021-12-09T21:08:07+08:00">
                2021-12-09
              </time>
            

            

            
          </span>

          

          
            
          

          
          

          

          

          

        </div>
      </header>
    

    
    
    
    <div class="post-body" itemprop="articleBody">

      
      

      
        
          
            <h2 id="第七关"><a href="#第七关" class="headerlink" title="第七关"></a>第七关</h2><h3 id="注意：千万不能使用cat-来查看data-txt-查找文件中的字符串要用grep；"><a href="#注意：千万不能使用cat-来查看data-txt-查找文件中的字符串要用grep；" class="headerlink" title="注意：千万不能使用cat 来查看data.txt 查找文件中的字符串要用grep；"></a>注意：千万不能使用cat 来查看data.txt 查找文件中的字符串要用grep；</h3><h4 id="直接输入"><a href="#直接输入" class="headerlink" title="直接输入"></a>直接输入</h4><figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">grep &#x27;millionth&#x27; data.txt</span><br></pre></td></tr></table></figure>

<h4 id="cvX2JJa4CFALtqS87jk27qwqGhBM9plV（通往第八关）"><a href="#cvX2JJa4CFALtqS87jk27qwqGhBM9plV（通往第八关）" class="headerlink" title="cvX2JJa4CFALtqS87jk27qwqGhBM9plV（通往第八关）"></a>cvX2JJa4CFALtqS87jk27qwqGhBM9plV（通往第八关）</h4><h2 id="第八关"><a href="#第八关" class="headerlink" title="第八关"></a>第八关</h2><h4 id="题目中说密码出现在data-txt中，且仅出现一次，因此需要出去重复的，使用命令uniq；"><a href="#题目中说密码出现在data-txt中，且仅出现一次，因此需要出去重复的，使用命令uniq；" class="headerlink" title="题目中说密码出现在data.txt中，且仅出现一次，因此需要出去重复的，使用命令uniq；"></a>题目中说密码出现在data.txt中，且仅出现一次，因此需要出去重复的，使用命令uniq；</h4><ul>
<li><p>uniq 命令，用于检查及删除文本文件中重复出现的行列，一般与 sort 命令结合使用。</p>
</li>
<li><p>-c 检查文件并删除文件中重复出现的行，并在行首显示该行重复出现的次数。</p>
</li>
<li><p>-u 仅显示出一次的行列。</p>
</li>
<li><p>sort 命令，用于将文本文件内容加以排序。</p>
<h4 id="因此输入-sort-data-txt-uniq-c"><a href="#因此输入-sort-data-txt-uniq-c" class="headerlink" title="因此输入 sort data.txt|uniq -c"></a>因此输入 sort data.txt|uniq -c</h4><h4 id="UsvVyFSfZZWbi6wgC7dAFyFuR6jQQUhR-第九关"><a href="#UsvVyFSfZZWbi6wgC7dAFyFuR6jQQUhR-第九关" class="headerlink" title="UsvVyFSfZZWbi6wgC7dAFyFuR6jQQUhR(第九关)"></a>UsvVyFSfZZWbi6wgC7dAFyFuR6jQQUhR(第九关)</h4><h2 id="第九关"><a href="#第九关" class="headerlink" title="第九关"></a>第九关</h2><h4 id="使用strings命令查找带有“-”的行；"><a href="#使用strings命令查找带有“-”的行；" class="headerlink" title="使用strings命令查找带有“=”的行；"></a>使用strings命令查找带有“=”的行；</h4><blockquote>
<p>strings命令，在对象文件或<a target="_blank" rel="noopener" href="https://www.zhihu.com/search?q=%E4%BA%8C%E8%BF%9B%E5%88%B6&search_source=Entity&hybrid_search_source=Entity&hybrid_search_extra=%7B%22sourceType%22:%22article%22,%22sourceId%22:100382314%7D">二进制</a>文件中查找可打印的字符串</p>
</blockquote>
</li>
</ul>
<h4 id="直接输入-strings-data-txt-grep’-’"><a href="#直接输入-strings-data-txt-grep’-’" class="headerlink" title="直接输入 strings data.txt|grep’=’"></a>直接输入 strings data.txt|grep’=’</h4><h3 id="truKLdjsbJ5g7yyJ2X2R0o3a5HQJFuLk-第十关"><a href="#truKLdjsbJ5g7yyJ2X2R0o3a5HQJFuLk-第十关" class="headerlink" title="truKLdjsbJ5g7yyJ2X2R0o3a5HQJFuLk(第十关)"></a>truKLdjsbJ5g7yyJ2X2R0o3a5HQJFuLk(第十关)</h3><h2 id="第十关"><a href="#第十关" class="headerlink" title="第十关"></a>第十关</h2><h4 id=""><a href="#" class="headerlink" title=""></a></h4><h4 id="先直接查看ls"><a href="#先直接查看ls" class="headerlink" title="先直接查看ls"></a>先直接查看ls</h4><h4 id="然后用cat查看该文件"><a href="#然后用cat查看该文件" class="headerlink" title="然后用cat查看该文件"></a>然后用cat查看该文件</h4><h4 id="然后再解密base64-d-data-txt"><a href="#然后再解密base64-d-data-txt" class="headerlink" title="然后再解密base64 -d data.txt"></a>然后再解密base64 -d data.txt</h4><h4 id="IFukwKGsFW8MOq3IRFqrxE1hxTNEbUPR（第11关）"><a href="#IFukwKGsFW8MOq3IRFqrxE1hxTNEbUPR（第11关）" class="headerlink" title="IFukwKGsFW8MOq3IRFqrxE1hxTNEbUPR（第11关）"></a>IFukwKGsFW8MOq3IRFqrxE1hxTNEbUPR（第11关）</h4><h2 id="第十一关"><a href="#第十一关" class="headerlink" title="第十一关"></a>第十一关</h2><h4 id="提示密码在-data-txt-中，所有字母都旋转了-13-个位置。也就是说，a-相当于-n。"><a href="#提示密码在-data-txt-中，所有字母都旋转了-13-个位置。也就是说，a-相当于-n。" class="headerlink" title="提示密码在 data.txt 中，所有字母都旋转了 13 个位置。也就是说，a 相当于 n。"></a>提示密码在 data.txt 中，所有字母都旋转了 13 个位置。也就是说，a 相当于 n。</h4><h4 id="使用命令-tr，先-cat-获取文本字符串："><a href="#使用命令-tr，先-cat-获取文本字符串：" class="headerlink" title="使用命令 tr，先 cat 获取文本字符串："></a>使用命令 tr，先 cat 获取文本字符串：</h4><figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">cat data.txt|tr &#x27;a-zA-Z&#x27; &#x27;n-za-mN-ZA-M&#x27;</span><br></pre></td></tr></table></figure>

<blockquote>
<p>tr 命令用于转换或删除文件中的字符。</p>
</blockquote>
<h4 id="5Te8Y4drgCRfCx8ugdwuEX8KFC6k2EUu-第十二关"><a href="#5Te8Y4drgCRfCx8ugdwuEX8KFC6k2EUu-第十二关" class="headerlink" title="5Te8Y4drgCRfCx8ugdwuEX8KFC6k2EUu(第十二关)"></a>5Te8Y4drgCRfCx8ugdwuEX8KFC6k2EUu(第十二关)</h4>
          
        
      
    </div>
    
    
    

    

    

    

    <footer class="post-footer">
      

      

      

      
      
        <div class="post-eof"></div>
      
    </footer>
  </div>
  
  
  
  </article>


    
      

  

  
  
  

  <article class="post post-type-normal" itemscope itemtype="http://schema.org/Article">
  
  
  
  <div class="post-block">
    <link itemprop="mainEntityOfPage" href="http://xu-xuran.gitee.io/2021/12/07/1-6%E5%85%B3%E6%89%93%E9%9D%B6/">

    <span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
      <meta itemprop="name" content="">
      <meta itemprop="description" content="">
      <meta itemprop="image" content="/images/avatar.gif">
    </span>

    <span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
      <meta itemprop="name" content="Hexo">
    </span>

    
      <header class="post-header">

        
        
          <h1 class="post-title" itemprop="name headline">
                
                <a class="post-title-link" href="/2021/12/07/1-6%E5%85%B3%E6%89%93%E9%9D%B6/" itemprop="url">Untitled</a></h1>
        

        <div class="post-meta">
          <span class="post-time">
            
              <span class="post-meta-item-icon">
                <i class="fa fa-calendar-o"></i>
              </span>
              
                <span class="post-meta-item-text">Posted on</span>
              
              <time title="Post created" itemprop="dateCreated datePublished" datetime="2021-12-07T22:38:18+08:00">
                2021-12-07
              </time>
            

            

            
          </span>

          

          
            
          

          
          

          

          

          

        </div>
      </header>
    

    
    
    
    <div class="post-body" itemprop="articleBody">

      
      

      
        
          
            <h2 id="第一关"><a href="#第一关" class="headerlink" title="第一关"></a>第一关</h2><h4 id="查看-，要用cat-查看（cat是查看的意思）"><a href="#查看-，要用cat-查看（cat是查看的意思）" class="headerlink" title="查看-，要用cat ./-查看（cat是查看的意思）"></a>查看-，要用cat ./-查看（cat是查看的意思）</h4><h4 id=""><a href="#" class="headerlink" title=""></a></h4><h2 id="第二关"><a href="#第二关" class="headerlink" title="第二关"></a>第二关</h2><h4 id="这一串字符是有空格的spaces-in-this-filename，不能直接用cat查看，经过搜索得到两个解决方案："><a href="#这一串字符是有空格的spaces-in-this-filename，不能直接用cat查看，经过搜索得到两个解决方案：" class="headerlink" title="这一串字符是有空格的spaces in this filename，不能直接用cat查看，经过搜索得到两个解决方案："></a>这一串字符是有空格的spaces in this filename，不能直接用cat查看，经过搜索得到两个解决方案：</h4><ol>
<li><p>加单引号：spaces ‘in ’this ‘filename</p>
<p>2.加斜线：spaces /in /this /filename</p>
</li>
</ol>
<p>然后用cat读取这串字符</p>
<h4 id="密码UmHadQclWmgdLOKQ3YNgjWxGoRMb5luK（通往第三关的密码）"><a href="#密码UmHadQclWmgdLOKQ3YNgjWxGoRMb5luK（通往第三关的密码）" class="headerlink" title="密码UmHadQclWmgdLOKQ3YNgjWxGoRMb5luK（通往第三关的密码）"></a>密码UmHadQclWmgdLOKQ3YNgjWxGoRMb5luK（通往第三关的密码）</h4><h2 id="第三关（3-4）"><a href="#第三关（3-4）" class="headerlink" title="第三关（3-4）"></a>第三关（3-4）</h2><h3 id="关键所在-首先cd-inhere"><a href="#关键所在-首先cd-inhere" class="headerlink" title="关键所在 首先cd inhere"></a>关键所在 首先cd inhere</h3><h4 id="之后再ls-再ls-a（这是查看隐藏文件用到的命令行）"><a href="#之后再ls-再ls-a（这是查看隐藏文件用到的命令行）" class="headerlink" title="之后再ls  再ls -a（这是查看隐藏文件用到的命令行）"></a>之后再ls  再ls -a（这是查看隐藏文件用到的命令行）</h4><h4 id="然后就可以cat查看了-hidden"><a href="#然后就可以cat查看了-hidden" class="headerlink" title="然后就可以cat查看了 .hidden"></a>然后就可以cat查看了 .hidden</h4><h4 id="密码pIwrPrtPN36QITSp3EQaw936yaFoFgAB（通往第四关的密码）"><a href="#密码pIwrPrtPN36QITSp3EQaw936yaFoFgAB（通往第四关的密码）" class="headerlink" title="密码pIwrPrtPN36QITSp3EQaw936yaFoFgAB（通往第四关的密码）"></a>密码pIwrPrtPN36QITSp3EQaw936yaFoFgAB（通往第四关的密码）</h4><h2 id="第四关"><a href="#第四关" class="headerlink" title="第四关"></a>第四关</h2><h4 id="本题有10个文件，题目说是密码在人类可读的文件，那么就要判断文件的类型，用file命令"><a href="#本题有10个文件，题目说是密码在人类可读的文件，那么就要判断文件的类型，用file命令" class="headerlink" title="本题有10个文件，题目说是密码在人类可读的文件，那么就要判断文件的类型，用file命令"></a>本题有10个文件，题目说是密码在人类可读的文件，那么就要判断文件的类型，用<code>file</code>命令</h4><h4 id="然后直接用file"><a href="#然后直接用file" class="headerlink" title="然后直接用file ./*"></a>然后直接用file ./*</h4><h4 id="会得到一系列的file0-找到其中不同的一个，这一个就是密码锁在-（-file07）"><a href="#会得到一系列的file0-找到其中不同的一个，这一个就是密码锁在-（-file07）" class="headerlink" title="会得到一系列的file0   找到其中不同的一个，这一个就是密码锁在 （./-file07）"></a>会得到一系列的file0   找到其中不同的一个，这一个就是密码锁在 （./-file07）</h4><h4 id="然后用cat查看就行"><a href="#然后用cat查看就行" class="headerlink" title="然后用cat查看就行"></a>然后用cat查看就行</h4><h4 id="密码koReBOKuIDDepwhWk7jZC0RTdopnAYKh（通往第五关的）"><a href="#密码koReBOKuIDDepwhWk7jZC0RTdopnAYKh（通往第五关的）" class="headerlink" title="密码koReBOKuIDDepwhWk7jZC0RTdopnAYKh（通往第五关的）"></a>密码koReBOKuIDDepwhWk7jZC0RTdopnAYKh（通往第五关的）</h4><h2 id="第五关"><a href="#第五关" class="headerlink" title="第五关"></a>第五关</h2><h3 id="human-readable"><a href="#human-readable" class="headerlink" title="human-readable"></a>human-readable</h3><h3 id="1033-bytes-in-size"><a href="#1033-bytes-in-size" class="headerlink" title="1033 bytes in size"></a>1033 bytes in size</h3><h3 id="not-executable"><a href="#not-executable" class="headerlink" title="not executable"></a>not executable</h3><p>以上是第5-6的通关题的指示</p>
<h4 id="由题目可知-这是一个人类可读懂得文件，有1033个字节，非可执行文件那么就需要用find命令查找（需要用-size-1003c）（声明一下-type-f是指定为普通文件）"><a href="#由题目可知-这是一个人类可读懂得文件，有1033个字节，非可执行文件那么就需要用find命令查找（需要用-size-1003c）（声明一下-type-f是指定为普通文件）" class="headerlink" title="由题目可知 这是一个人类可读懂得文件，有1033个字节，非可执行文件那么就需要用find命令查找（需要用-size 1003c）（声明一下-type f是指定为普通文件）"></a>由题目可知 这是一个人类可读懂得文件，有1033个字节，非可执行文件那么就需要用find命令查找（需要用-size 1003c）（声明一下-type f是指定为普通文件）</h4><h4 id="之后会出现一串字符，再用cat查找就行"><a href="#之后会出现一串字符，再用cat查找就行" class="headerlink" title="之后会出现一串字符，再用cat查找就行"></a>之后会出现一串字符，再用cat查找就行</h4><h4 id="DXjZPULLxYr17uwoI01bNLQbtFemEgo7（通往第六关的）"><a href="#DXjZPULLxYr17uwoI01bNLQbtFemEgo7（通往第六关的）" class="headerlink" title="DXjZPULLxYr17uwoI01bNLQbtFemEgo7（通往第六关的）"></a>DXjZPULLxYr17uwoI01bNLQbtFemEgo7（通往第六关的）</h4><blockquote>
<p>find 命令：用来在指定目录下查找文件。<br>-size n : 文件大小 是 n 单位，b 代表 512 位元组的区块，c 表示字元数，k 表示 kilo bytes，w 是二个位元组。-type c : 文件类型是 c 的文件，d: 目录，c: 字型装置文件，b: 区块装置文件，p: 具名贮列，f: 一般文件，l: 符号连结，s: socket。</p>
<p>ls 显示目录下的文件名<br>-a 显示所有文件（包含隐藏文件），以.开头的文件为隐藏文件<br>-A 显示所有文件（不包含.和..）</p>
</blockquote>
<h2 id="第六关"><a href="#第六关" class="headerlink" title="第六关"></a>第六关</h2><h3 id="-1"><a href="#-1" class="headerlink" title=""></a></h3><ul>
<li>owned by user bandit7</li>
<li>owned by group bandit6</li>
<li>33 bytes in size</li>
</ul>
<p>以上是第6-7的通题指令</p>
<h4 id="此题目和第五题差不多类型，也需要find查找，用find-将这些类型输进去就ok，然后会出现很多东西，找出类型不同的一个就是密码；"><a href="#此题目和第五题差不多类型，也需要find查找，用find-将这些类型输进去就ok，然后会出现很多东西，找出类型不同的一个就是密码；" class="headerlink" title="此题目和第五题差不多类型，也需要find查找，用find / 将这些类型输进去就ok，然后会出现很多东西，找出类型不同的一个就是密码；"></a>此题目和第五题差不多类型，也需要find查找，用find / 将这些类型输进去就ok，然后会出现很多东西，找出类型不同的一个就是密码；</h4><h3 id="用find输入的时候是这样的-find-size-1033c-user-bandit7-group-bandit6"><a href="#用find输入的时候是这样的-find-size-1033c-user-bandit7-group-bandit6" class="headerlink" title="用find输入的时候是这样的  find / - size 1033c - user bandit7 - group bandit6"></a>用find输入的时候是这样的  find / - size 1033c - user bandit7 - group bandit6</h3><h4 id="然后用cat查看"><a href="#然后用cat查看" class="headerlink" title="然后用cat查看"></a>然后用cat查看</h4><h4 id="HKBPTKQnIay4Fw76bEy8PVxKEDQRKTzs（通往第七关的）"><a href="#HKBPTKQnIay4Fw76bEy8PVxKEDQRKTzs（通往第七关的）" class="headerlink" title="HKBPTKQnIay4Fw76bEy8PVxKEDQRKTzs（通往第七关的）"></a>HKBPTKQnIay4Fw76bEy8PVxKEDQRKTzs（通往第七关的）</h4>
          
        
      
    </div>
    
    
    

    

    

    

    <footer class="post-footer">
      

      

      

      
      
        <div class="post-eof"></div>
      
    </footer>
  </div>
  
  
  
  </article>


    
      

  

  
  
  

  <article class="post post-type-normal" itemscope itemtype="http://schema.org/Article">
  
  
  
  <div class="post-block">
    <link itemprop="mainEntityOfPage" href="http://xu-xuran.gitee.io/2021/11/13/ls/">

    <span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
      <meta itemprop="name" content="">
      <meta itemprop="description" content="">
      <meta itemprop="image" content="/images/avatar.gif">
    </span>

    <span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
      <meta itemprop="name" content="Hexo">
    </span>

    
      <header class="post-header">

        
        
          <h1 class="post-title" itemprop="name headline">
                
                <a class="post-title-link" href="/2021/11/13/ls/" itemprop="url">Untitled</a></h1>
        

        <div class="post-meta">
          <span class="post-time">
            
              <span class="post-meta-item-icon">
                <i class="fa fa-calendar-o"></i>
              </span>
              
                <span class="post-meta-item-text">Posted on</span>
              
              <time title="Post created" itemprop="dateCreated datePublished" datetime="2021-11-13T12:07:07+08:00">
                2021-11-13
              </time>
            

            

            
          </span>

          

          
            
          

          
          

          

          

          

        </div>
      </header>
    

    
    
    
    <div class="post-body" itemprop="articleBody">

      
      

      
        
          
            <h1 id="徐"><a href="#徐" class="headerlink" title="徐"></a>徐</h1><h3 id="hao"><a href="#hao" class="headerlink" title="hao"></a>hao</h3>
          
        
      
    </div>
    
    
    

    

    

    

    <footer class="post-footer">
      

      

      

      
      
        <div class="post-eof"></div>
      
    </footer>
  </div>
  
  
  
  </article>


    
      

  

  
  
  

  <article class="post post-type-normal" itemscope itemtype="http://schema.org/Article">
  
  
  
  <div class="post-block">
    <link itemprop="mainEntityOfPage" href="http://xu-xuran.gitee.io/2021/11/13/%E6%B5%8B%E8%AF%95/">

    <span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
      <meta itemprop="name" content="">
      <meta itemprop="description" content="">
      <meta itemprop="image" content="/images/avatar.gif">
    </span>

    <span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
      <meta itemprop="name" content="Hexo">
    </span>

    
      <header class="post-header">

        
        
          <h1 class="post-title" itemprop="name headline">
                
                <a class="post-title-link" href="/2021/11/13/%E6%B5%8B%E8%AF%95/" itemprop="url">c语言笔记</a></h1>
        

        <div class="post-meta">
          <span class="post-time">
            
              <span class="post-meta-item-icon">
                <i class="fa fa-calendar-o"></i>
              </span>
              
                <span class="post-meta-item-text">Posted on</span>
              
              <time title="Post created" itemprop="dateCreated datePublished" datetime="2021-11-13T11:47:13+08:00">
                2021-11-13
              </time>
            

            

            
          </span>

          

          
            
          

          
          

          

          

          

        </div>
      </header>
    

    
    
    
    <div class="post-body" itemprop="articleBody">

      
      

      
        
          
            <h1 id="一级标题"><a href="#一级标题" class="headerlink" title="一级标题"></a>一级标题</h1><h2 id="c语言第二次课"><a href="#c语言第二次课" class="headerlink" title="c语言第二次课"></a>c语言第二次课</h2><p>本节课将dfsgfdf</p>
<figure class="highlight c"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br></pre></td><td class="code"><pre><span class="line"><span class="meta">#<span class="meta-keyword">include</span><span class="meta-string">&lt;stdio.h&gt;</span></span></span><br><span class="line"><span class="function"><span class="keyword">int</span> <span class="title">main</span><span class="params">()</span></span>&#123;</span><br><span class="line">    </span><br><span class="line">&#125;</span><br></pre></td></tr></table></figure>

<blockquote>
<p>apple </p>
</blockquote>
<ul>
<li>低于i</li>
</ul>
<p><code>main</code> <em><strong>函数</strong></em></p>
<p><img src="https://image-static.segmentfault.com/865/196/865196515-5c47cdff00fc8_fix732"></p>
<p><img src="C:\Users\HP\AppData\Roaming\Typora\typora-user-images\image-20211113120206637.png" alt="image-20211113120206637"></p>

          
        
      
    </div>
    
    
    

    

    

    

    <footer class="post-footer">
      

      

      

      
      
        <div class="post-eof"></div>
      
    </footer>
  </div>
  
  
  
  </article>


    
      

  

  
  
  

  <article class="post post-type-normal" itemscope itemtype="http://schema.org/Article">
  
  
  
  <div class="post-block">
    <link itemprop="mainEntityOfPage" href="http://xu-xuran.gitee.io/2021/11/09/hello-world/">

    <span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
      <meta itemprop="name" content="">
      <meta itemprop="description" content="">
      <meta itemprop="image" content="/images/avatar.gif">
    </span>

    <span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
      <meta itemprop="name" content="Hexo">
    </span>

    
      <header class="post-header">

        
        
          <h1 class="post-title" itemprop="name headline">
                
                <a class="post-title-link" href="/2021/11/09/hello-world/" itemprop="url">Hello World</a></h1>
        

        <div class="post-meta">
          <span class="post-time">
            
              <span class="post-meta-item-icon">
                <i class="fa fa-calendar-o"></i>
              </span>
              
                <span class="post-meta-item-text">Posted on</span>
              
              <time title="Post created" itemprop="dateCreated datePublished" datetime="2021-11-09T17:00:40+08:00">
                2021-11-09
              </time>
            

            

            
          </span>

          

          
            
          

          
          

          

          

          

        </div>
      </header>
    

    
    
    
    <div class="post-body" itemprop="articleBody">

      
      

      
        
          
            <p>Welcome to <a target="_blank" rel="noopener" href="https://hexo.io/">Hexo</a>! This is your very first post. Check <a target="_blank" rel="noopener" href="https://hexo.io/docs/">documentation</a> for more info. If you get any problems when using Hexo, you can find the answer in <a target="_blank" rel="noopener" href="https://hexo.io/docs/troubleshooting.html">troubleshooting</a> or you can ask me on <a target="_blank" rel="noopener" href="https://github.com/hexojs/hexo/issues">GitHub</a>.</p>
<h2 id="Quick-Start"><a href="#Quick-Start" class="headerlink" title="Quick Start"></a>Quick Start</h2><h3 id="Create-a-new-post"><a href="#Create-a-new-post" class="headerlink" title="Create a new post"></a>Create a new post</h3><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">$ hexo new <span class="string">&quot;My New Post&quot;</span></span><br></pre></td></tr></table></figure>

<p>More info: <a target="_blank" rel="noopener" href="https://hexo.io/docs/writing.html">Writing</a></p>
<h3 id="Run-server"><a href="#Run-server" class="headerlink" title="Run server"></a>Run server</h3><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">$ hexo server</span><br></pre></td></tr></table></figure>

<p>More info: <a target="_blank" rel="noopener" href="https://hexo.io/docs/server.html">Server</a></p>
<h3 id="Generate-static-files"><a href="#Generate-static-files" class="headerlink" title="Generate static files"></a>Generate static files</h3><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">$ hexo generate</span><br></pre></td></tr></table></figure>

<p>More info: <a target="_blank" rel="noopener" href="https://hexo.io/docs/generating.html">Generating</a></p>
<h3 id="Deploy-to-remote-sites"><a href="#Deploy-to-remote-sites" class="headerlink" title="Deploy to remote sites"></a>Deploy to remote sites</h3><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">$ hexo deploy</span><br></pre></td></tr></table></figure>

<p>More info: <a target="_blank" rel="noopener" href="https://hexo.io/docs/one-command-deployment.html">Deployment</a></p>

          
        
      
    </div>
    
    
    

    

    

    

    <footer class="post-footer">
      

      

      

      
      
        <div class="post-eof"></div>
      
    </footer>
  </div>
  
  
  
  </article>


    
  </section>

  


          </div>
          


          

        </div>
        
          
  
  <div class="sidebar-toggle">
    <div class="sidebar-toggle-line-wrap">
      <span class="sidebar-toggle-line sidebar-toggle-line-first"></span>
      <span class="sidebar-toggle-line sidebar-toggle-line-middle"></span>
      <span class="sidebar-toggle-line sidebar-toggle-line-last"></span>
    </div>
  </div>

  <aside id="sidebar" class="sidebar">
    
    <div class="sidebar-inner">

      

      

      <section class="site-overview-wrap sidebar-panel sidebar-panel-active">
        <div class="site-overview">
          <div class="site-author motion-element" itemprop="author" itemscope itemtype="http://schema.org/Person">
            
              <p class="site-author-name" itemprop="name"></p>
              <p class="site-description motion-element" itemprop="description"></p>
          </div>

          <nav class="site-state motion-element">

            
              <div class="site-state-item site-state-posts">
              
                <a href="/archives/%20%7C%7C%20archive">
              
                  <span class="site-state-item-count">6</span>
                  <span class="site-state-item-name">posts</span>
                </a>
              </div>
            

            

            
              
              
              <div class="site-state-item site-state-tags">
                
                  <span class="site-state-item-count">2</span>
                  <span class="site-state-item-name">tags</span>
                
              </div>
            

          </nav>

          

          

          
          

          
          

          

        </div>
      </section>

      

      

    </div>
  </aside>


        
      </div>
    </main>

    <footer id="footer" class="footer">
      <div class="footer-inner">
        <div class="copyright">&copy; <span itemprop="copyrightYear">2021</span>
  <span class="with-love">
    <i class="fa fa-user"></i>
  </span>
  <span class="author" itemprop="copyrightHolder">xuxuran</span>

  
</div>


  <div class="powered-by">Powered by <a class="theme-link" target="_blank" href="https://hexo.io">Hexo</a></div>



  <span class="post-meta-divider">|</span>



  <div class="theme-info">Theme &mdash; <a class="theme-link" target="_blank" href="https://github.com/iissnan/hexo-theme-next">NexT.Muse</a> v5.1.4</div>




        







        
      </div>
    </footer>

    
      <div class="back-to-top">
        <i class="fa fa-arrow-up"></i>
        
      </div>
    

    

  </div>

  

<script type="text/javascript">
  if (Object.prototype.toString.call(window.Promise) !== '[object Function]') {
    window.Promise = null;
  }
</script>









  












  
  
    <script type="text/javascript" src="/lib/jquery/index.js?v=2.1.3"></script>
  

  
  
    <script type="text/javascript" src="/lib/fastclick/lib/fastclick.min.js?v=1.0.6"></script>
  

  
  
    <script type="text/javascript" src="/lib/jquery_lazyload/jquery.lazyload.js?v=1.9.7"></script>
  

  
  
    <script type="text/javascript" src="/lib/velocity/velocity.min.js?v=1.2.1"></script>
  

  
  
    <script type="text/javascript" src="/lib/velocity/velocity.ui.min.js?v=1.2.1"></script>
  

  
  
    <script type="text/javascript" src="/lib/fancybox/source/jquery.fancybox.pack.js?v=2.1.5"></script>
  


  


  <script type="text/javascript" src="/js/src/utils.js?v=5.1.4"></script>

  <script type="text/javascript" src="/js/src/motion.js?v=5.1.4"></script>



  
  

  

  


  <script type="text/javascript" src="/js/src/bootstrap.js?v=5.1.4"></script>



  


  




	





  





  












  





  

  

  

  
  

  

  

  

</body>
</html>
